package com.boang.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.boang.entity.Unit;
import com.boang.service.UnitService;
import com.boang.mapper.UnitMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 22567
* @description 针对表【unit】的数据库操作Service实现
* @createDate 2025-03-03 17:10:40
*/
@Service
public class UnitServiceImpl extends ServiceImpl<UnitMapper, Unit>
    implements UnitService{



    @Autowired
    private UnitMapper yourMapper;

    // 根据build_id查询列表
    public List<Unit> getByBuildId(String buildId) {
        QueryWrapper<Unit> wrapper = new QueryWrapper<>();
        wrapper.eq("build_id", buildId); // 数据库字段名
        return yourMapper.selectList(wrapper);
    }
}




